<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver CH9121: interface/driver_ch9121_interface.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver CH9121
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">CH9121 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('driver__ch9121__interface_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">driver_ch9121_interface.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="driver__ch9121__interface_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef DRIVER_CH9121_INTERFACE_H</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define DRIVER_CH9121_INTERFACE_H</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="driver__ch9121_8h.html">driver_ch9121.h</a>&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#gaafb066d6c2dacb045876319b9ae48391">ch9121_interface_uart_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#ga7cfaafde3831ef0d3200fa7bd4877406">ch9121_interface_uart_deinit</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;uint16_t <a class="code" href="group__ch9121__interface__driver.html#ga7162ad2eded271ed24160ae188d8533e">ch9121_interface_uart_read</a>(uint8_t *buf, uint16_t len);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#ga83237d6e503fc9572678ce25559af6a8">ch9121_interface_uart_flush</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#ga8da1512cc7addcaaf49e80e5789defca">ch9121_interface_uart_write</a>(uint8_t *buf, uint16_t len);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#gad24d87164c99484b276a089827dc1f64">ch9121_interface_reset_gpio_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#gaf72db05ed030b30da51b9406b547d1cb">ch9121_interface_reset_gpio_deinit</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#gaee721347bcca3a578f7fe0add0874ac0">ch9121_interface_reset_gpio_write</a>(uint8_t data);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#gacf8b3e382add1b66cd0d5809d2d784b7">ch9121_interface_cfg_gpio_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#ga2e04964bdc718090769481d9c72dc65c">ch9121_interface_cfg_gpio_deinit</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;uint8_t <a class="code" href="group__ch9121__interface__driver.html#ga670550df68be7cb34f15d92ccc54101a">ch9121_interface_cfg_gpio_write</a>(uint8_t data);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__ch9121__interface__driver.html#ga4664c8ca283f522e6ff18ecffe335e5d">ch9121_interface_delay_ms</a>(uint32_t ms);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__ch9121__interface__driver.html#gabc9e3efd2d9d79d5da8cdd7b832fef5a">ch9121_interface_debug_print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> fmt, ...);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;}</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="adriver__ch9121_8h_html"><div class="ttname"><a href="driver__ch9121_8h.html">driver_ch9121.h</a></div><div class="ttdoc">driver ch9121 header file</div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga2e04964bdc718090769481d9c72dc65c"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga2e04964bdc718090769481d9c72dc65c">ch9121_interface_cfg_gpio_deinit</a></div><div class="ttdeci">uint8_t ch9121_interface_cfg_gpio_deinit(void)</div><div class="ttdoc">interface cfg gpio deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00159">driver_ch9121_interface_template.c:159</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga4664c8ca283f522e6ff18ecffe335e5d"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga4664c8ca283f522e6ff18ecffe335e5d">ch9121_interface_delay_ms</a></div><div class="ttdeci">void ch9121_interface_delay_ms(uint32_t ms)</div><div class="ttdoc">interface delay ms</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00182">driver_ch9121_interface_template.c:182</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga670550df68be7cb34f15d92ccc54101a"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga670550df68be7cb34f15d92ccc54101a">ch9121_interface_cfg_gpio_write</a></div><div class="ttdeci">uint8_t ch9121_interface_cfg_gpio_write(uint8_t data)</div><div class="ttdoc">interface cfg gpio write</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00172">driver_ch9121_interface_template.c:172</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga7162ad2eded271ed24160ae188d8533e"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga7162ad2eded271ed24160ae188d8533e">ch9121_interface_uart_read</a></div><div class="ttdeci">uint16_t ch9121_interface_uart_read(uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface uart read</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00072">driver_ch9121_interface_template.c:72</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga7cfaafde3831ef0d3200fa7bd4877406"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga7cfaafde3831ef0d3200fa7bd4877406">ch9121_interface_uart_deinit</a></div><div class="ttdeci">uint8_t ch9121_interface_uart_deinit(void)</div><div class="ttdoc">interface uart deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00058">driver_ch9121_interface_template.c:58</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga83237d6e503fc9572678ce25559af6a8"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga83237d6e503fc9572678ce25559af6a8">ch9121_interface_uart_flush</a></div><div class="ttdeci">uint8_t ch9121_interface_uart_flush(void)</div><div class="ttdoc">interface uart flush</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00084">driver_ch9121_interface_template.c:84</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_ga8da1512cc7addcaaf49e80e5789defca"><div class="ttname"><a href="group__ch9121__interface__driver.html#ga8da1512cc7addcaaf49e80e5789defca">ch9121_interface_uart_write</a></div><div class="ttdeci">uint8_t ch9121_interface_uart_write(uint8_t *buf, uint16_t len)</div><div class="ttdoc">interface uart write</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00098">driver_ch9121_interface_template.c:98</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gaafb066d6c2dacb045876319b9ae48391"><div class="ttname"><a href="group__ch9121__interface__driver.html#gaafb066d6c2dacb045876319b9ae48391">ch9121_interface_uart_init</a></div><div class="ttdeci">uint8_t ch9121_interface_uart_init(void)</div><div class="ttdoc">interface uart init</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00046">driver_ch9121_interface_template.c:46</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gabc9e3efd2d9d79d5da8cdd7b832fef5a"><div class="ttname"><a href="group__ch9121__interface__driver.html#gabc9e3efd2d9d79d5da8cdd7b832fef5a">ch9121_interface_debug_print</a></div><div class="ttdeci">void ch9121_interface_debug_print(const char *const fmt,...)</div><div class="ttdoc">interface print format data</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00192">driver_ch9121_interface_template.c:192</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gacf8b3e382add1b66cd0d5809d2d784b7"><div class="ttname"><a href="group__ch9121__interface__driver.html#gacf8b3e382add1b66cd0d5809d2d784b7">ch9121_interface_cfg_gpio_init</a></div><div class="ttdeci">uint8_t ch9121_interface_cfg_gpio_init(void)</div><div class="ttdoc">interface cfg gpio init</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00147">driver_ch9121_interface_template.c:147</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gad24d87164c99484b276a089827dc1f64"><div class="ttname"><a href="group__ch9121__interface__driver.html#gad24d87164c99484b276a089827dc1f64">ch9121_interface_reset_gpio_init</a></div><div class="ttdeci">uint8_t ch9121_interface_reset_gpio_init(void)</div><div class="ttdoc">interface reset gpio init</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00110">driver_ch9121_interface_template.c:110</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gaee721347bcca3a578f7fe0add0874ac0"><div class="ttname"><a href="group__ch9121__interface__driver.html#gaee721347bcca3a578f7fe0add0874ac0">ch9121_interface_reset_gpio_write</a></div><div class="ttdeci">uint8_t ch9121_interface_reset_gpio_write(uint8_t data)</div><div class="ttdoc">interface reset gpio write</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00135">driver_ch9121_interface_template.c:135</a></div></div>
<div class="ttc" id="agroup__ch9121__interface__driver_html_gaf72db05ed030b30da51b9406b547d1cb"><div class="ttname"><a href="group__ch9121__interface__driver.html#gaf72db05ed030b30da51b9406b547d1cb">ch9121_interface_reset_gpio_deinit</a></div><div class="ttdeci">uint8_t ch9121_interface_reset_gpio_deinit(void)</div><div class="ttdoc">interface reset gpio deinit</div><div class="ttdef"><b>Definition:</b> <a href="driver__ch9121__interface__template_8c_source.html#l00122">driver_ch9121_interface_template.c:122</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_b31d54d5631803016a26f28213a41162.html">interface</a></li><li class="navelem"><a class="el" href="driver__ch9121__interface_8h.html">driver_ch9121_interface.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
